package com.dys.bean;

import java.util.List;
import java.util.Map;

/**
 * @Author: 疾风
 * @ClassName: Department
 * @Description: 部门实体
 * @CreateDate: 2024/10/18
 * @Version: v1.0.0
 */
public class Department {
    private int id;
    private String name;
    private List<Employee> employees;
    private Map map;

    public Department() {
    }

    public Department(int id, String name, List<Employee> employees) {
        this.id = id;
        this.name = name;
        this.employees = employees;
    }

    public Department(int id, String name, List<Employee> employees, Map map) {
        this.id = id;
        this.name = name;
        this.employees = employees;
        this.map = map;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", employees=" + employees +
                ", map=" + map +
                '}';
    }
}
